import {LAYOUT, HOME, BILL, BILL_DETAIL, ABOUT, REVENUE, EXPENDITURE, SYSTEM, ROLE, AUTH} from './route-name';

const routes = [
    {
        id: 0,
        parentId: -1,
        name: LAYOUT,
        path: '/layout',
        redirect: '/home'
    },
    {
        id: 21,
        parentId: 0,
        path: '/home',
        name: HOME,
        hidden: false,
        meta: {
            title: '首页',
            icon: 'el-icon-s-home',
            index: ''
        }
    },
    {
        id: 22,
        parentId: 0,
        path: '/bill',
        name: BILL,
        hidden: false,
        meta: {
            title: '账单管理',
            icon: 'iconfont icon-zhangdan',
            index: ''
        }
    },
    {
        id: 22001,
        parentId: 22,
        path: '/bill/detail',
        name: BILL_DETAIL,
        hidden: true,
        meta: {
            title: '详情', // 账单管理详情
            icon: '',
            index: 'BILL'
        }
    },
    {
        id: 24,
        parentId: 0,
        path: '/revenue',
        name: REVENUE,
        hidden: false,
        meta: {
            title: '收入管理',
            icon: 'iconfont icon-shouru',
            index: ''
        }
    },
    {
        id: 25,
        parentId: 0,
        path: '/expenditure',
        name: EXPENDITURE,
        hidden: false,
        meta: {
            title: '支出管理',
            icon: 'iconfont icon-zhichu',
            index: ''
        }
    },
    {
        id: 23,
        parentId: 0,
        path: '/about',
        name: ABOUT,
        hidden: false,
        meta: {
            title: '关于我们',
            icon: 'el-icon-data-analysis',
            index: 'iconfont icon-rizhixitong'
        }
    },
    {
        id: 26,
        parentId: 0,
        path: '/system',
        name: SYSTEM,
        redirect: 'noRedirect',
        hidden: false,
        meta: {
            title: '系统管理',
            icon: 'iconfont icon-xitongguanli',
            index: ''
        }
    },
    {
        id: 27,
        parentId: 26,
        path: '/auth',
        name: AUTH,
        hidden: false,
        meta: {
            title: '用户管理',
            icon: '',
            index: ''
        }
    },
    {
        id: 28,
        parentId: 26,
        path: '/role',
        name: ROLE,
        hidden: false,
        meta: {
            title: '角色管理',
            icon: '',
            index: ''
        }
    }
];

export default routes;
